import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import login from '@/pages/login/login'
import orderstat from '@/pages/person/orderstat'
import withdraw from '@/pages/person/withdraw'
import paydetails from '@/pages/person/paydetails'
import myset from '@/pages/person/myset'
import changepwd from '@/pages/person/changepwd'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/orderstat',
      name: 'orderstat',
      component: orderstat
    },
    {
      path: '/withdraw',
      name: 'withdraw',
      component: withdraw
    },
    {
      path: '/paydetails',
      name: 'paydetails',
      component: paydetails
    },
    {
      path: '/myset',
      name: 'myset',
      component: myset
    },
    {
      path: '/myset/changepwd',
      name: 'changepwd',
      component: changepwd
    }
  ]
})
